package com.xinqi.modules.sys.dict.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.dict.domain.DictGradeSubjectEntity;
import com.xinqi.modules.sys.dict.dto.req.DictGradeSubjectCreateDTO;
import com.xinqi.modules.sys.dict.dto.req.DictGradeSubjectUpdateDTO;
import com.xinqi.modules.sys.dict.dto.rsp.DictGradeSubjectResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 字典-年级学科转换
 *
 * @author: linkai
 * @date: 2023/05/03
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class DictGradeSubjectConvert {
    public abstract DictGradeSubjectEntity create(DictGradeSubjectCreateDTO s);

    public abstract DictGradeSubjectEntity update(DictGradeSubjectUpdateDTO s, @MappingTarget DictGradeSubjectEntity t);

    public abstract DictGradeSubjectEntity update(DictGradeSubjectUpdateDTO s);

    public abstract DictGradeSubjectResultDTO convert(DictGradeSubjectEntity s);
}
